package com.ruoyi.common.constant;

/**
 * 用户常量信息
 * 
 * @author ruoyi
 */
public class UserConstants
{
    /**
     * 平台内系统用户的唯一标志
     */
    public static final String SYS_USER = "SYS_USER";

    /** 数字 0 */
    public static final String ZERO = "0";

    /** 数字 1 */
    public static final String ONE = "1";

    /** 数字 2 */
    public static final String TWO = "2";

    /** 正常状态 */
    public static final String NORMAL = "0";

    /** 异常状态 */
    public static final String EXCEPTION = "1";

    /** 在线状态 */
    public static final String ONLINE = "0";

    /** 忙碌状态 */
    public static final String BUSY = "1";

    /** 下线状态 */
    public static final String OFFLINE = "2";

    /** 用户封禁状态 */
    public static final String USER_DISABLE = "1";

    /** 角色封禁状态 */
    public static final String ROLE_DISABLE = "1";

    /** 部门正常状态 */
    public static final String DEPT_NORMAL = "0";

    /** 部门停用状态 */
    public static final String DEPT_DISABLE = "1";

    /** 字典正常状态 */
    public static final String DICT_NORMAL = "0";

    /** 是否为系统默认（是） */
    public static final String YES = "Y";

    /** 是否为系统默认（否） */
    public static final String NO = "N";

    /** 是否菜单外链（是） */
    public static final String YES_FRAME = "0";

    /** 是否菜单外链（否） */
    public static final String NO_FRAME = "1";

    /** 菜单类型（目录） */
    public static final String TYPE_DIR = "M";

    /** 菜单类型（菜单） */
    public static final String TYPE_MENU = "C";

    /** 菜单类型（按钮） */
    public static final String TYPE_BUTTON = "F";

    /** Layout组件标识 */
    public final static String LAYOUT = "Layout";
    
    /** ParentView组件标识 */
    public final static String PARENT_VIEW = "ParentView";

    /** InnerLink组件标识 */
    public final static String INNER_LINK = "InnerLink";

    /** 审核状态 - 审核中 */
    public final static String STATUS_AUDIT = "audit";

    /** 审核状态 - 通过 */
    public final static String STATUS_APPROVE = "approve";

    /** 审核状态 - 驳回 */
    public final static String STATUS_REJECT = "reject";

    /** 支付状态 - 已支付 */
    public final static String PAY_STATUS_PAID = "paid";

    /** 支付状态 - 未支付 */
    public final static String PAY_STATUS_UNPAID = "unpaid";

    /** 支付状态 - 已取消 */
    public final static String PAY_STATUS_CANCEL = "cancel";

    /** 支付状态 - 退款至原路 */
    public final static String PAY_STATUS_REFUND_ORIGIN = "refund_origin";

    /** 支付状态 - 退款至钱包 */
    public final static String PAY_STATUS_REFUND_WALLET = "refund_wallet";

    /** 支付状态 - 退款失败 */
    public final static String PAY_STATUS_REFUND_ERROR = "refund_error";

    /** 待服务 -  wait_service-待服务 in_service-服务中 finish_service-服务完成 cancel_service-取消订单 */
    public final static String STATUS_WAIT = "wait_service";

    /** 服务中 -  wait_service-待服务 in_service-服务中 finish_service-服务完成 cancel_service-取消订单 */
    public final static String STATUS_IN = "in_service";

    /** 服务完成 -  wait_service-待服务 in_service-服务中 finish_service-服务完成 cancel_service-取消订单 */
    public final static String STATUS_FINISH = "finish_service";

    /** 取消订单 -  wait_service-待服务 in_service-服务中 finish_service-服务完成 cancel_service-取消订单 */
    public final static String STATUS_CANCEL = "cancel_service";

    /** 取消订单 -  wait_service-待服务 in_service-服务中 finish_service-服务完成 cancel_service-取消订单 */
    public final static String STATUS_GOING = "going";

    public final static String STATUS_PREPARING = "preparing";

    public final static String STATUS_SUCCESS = "success";

    // 财务类型 - 充值
    public final static String FINANCE_RECHARGE = "recharge";

    // 财务类型 - 礼物打赏
    public final static String FINANCE_GIFT = "gift";

    // 财务类型 - 提现
    public final static String FINANCE_CASH = "cash";

    // 财务类型 - 下单
    public final static String FINANCE_ORDER = "order";

    // 财务类型 - 退还
    public final static String FINANCE_BACK = "back";


    // 财务类型 - pk
    public final static String FINANCE_PK = "pk";

    // 支付类型 - 余额
    public final static String PAY_TYPE_BALANCE = "balance";

    // 支付类型 - 微信公众号
    public final static String PAY_TYPE_WX_OFFICIAL_ACCOUNT = "wx_official_account";

    // 支付类型 - 微信小程序
    public final static String PAY_TYPE_WX_MINI_PROGRAM = "wx_mp_program";

    public final static String IMAGE_TYPE_BANNER = "banner";

    /** 分销模式 */
    public final static String CPS = "CPS";

    /** 校验是否唯一的返回标识 */
    public final static boolean UNIQUE = true;
    public final static boolean NOT_UNIQUE = false;

    /** 校验是否唯一的返回标识 */
    public final static boolean TRUE_FLAG = true;
    public final static boolean FALSE_FLAG = false;

    /**
     * 用户名长度限制
     */
    public static final int USERNAME_MIN_LENGTH = 2;
    public static final int USERNAME_MAX_LENGTH = 20;

    /**
     * 密码长度限制
     */
    public static final int PASSWORD_MIN_LENGTH = 5;
    public static final int PASSWORD_MAX_LENGTH = 20;
}
